﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Eassets.Data.Asset;
using Eassets.Layered.Domain.Asset;
using System.Collections.ObjectModel;

namespace Eassets.Service.Asset
{
   public class FixedAssetCustodianService
    {
        FixedAssetCustodianData fixedAssetCustodiandata = new FixedAssetCustodianData();

        public void AddFixedAssetCustodian(FixedAssetCustodian fixedAssetCustodian)
        {
            if (fixedAssetCustodian != null)
            {
                fixedAssetCustodiandata.AddFixedAssetCustodian(fixedAssetCustodian);
            }
        }
      
        public FixedAssetCustodian GetByIdFixedAssetCustodian(long fixedAssetCustodianId)
        {
            return fixedAssetCustodiandata.GetByIdFixedAssetCustodian(fixedAssetCustodianId);
        }

        public Collection<FixedAssetCustodian> GetAllFixedAssetCustodian()
        {
            return fixedAssetCustodiandata.GetAllFixedAssetCustodian();
        }
    }
}
